package xyz.hubery.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import xyz.hubery.domain.DepthItemVo;

import java.util.List;
import java.util.Map;

@FeignClient(value = "match-service",configuration = ClientCredentialsFeignInterceptor.class,path = "/match")
public interface MatchServiceFeign {

    /**
     * 查询交易对的盘口数据
     * @param symbol
     * @return
     * key :sell:asks   value: List<DepthItemVo>
     * key: buy:bids    value:List<DepthItemVo>
     */
    @GetMapping("/plates")
    Map<String, List<DepthItemVo>> querySymbolDepth(@RequestParam String symbol);


}
